@@ -68,6 +68,7 @@ def clerk_update(request):  | 
            ||
| 68 | 68 | 
                     clerk_id = request.POST.get('clerk_id', '')
               | 
            
| 69 | 69 | 
                     clerk_name = request.POST.get('clerk_name', '')
               | 
            
| 70 | 70 | 
                     clerk_phone = request.POST.get('clerk_phone', '')
               | 
            
| 71 | 
                +    is_auth = request.POST.get('is_auth', '0')  # 1 为已关注,0 为未关注
               | 
            |
| 71 | 72 | 
                 | 
            
| 72 | 73 | 
                     admin_id = request.session.get('admin_id')
               | 
            
| 73 | 74 | 
                 | 
            
                @@ -85,6 +86,8 @@ def clerk_update(request):  | 
            ||
| 85 | 86 | 
                clerk.clerk_name = clerk_name  | 
            
| 86 | 87 | 
                if clerk_phone:  | 
            
| 87 | 88 | 
                clerk.clerk_phone = clerk_phone  | 
            
| 89 | 
                + if is_auth:  | 
            |
| 90 | 
                + clerk.is_auth = bool(int(is_auth))  | 
            |
| 88 | 91 | 
                 | 
            
| 89 | 92 | 
                clerk.save()  | 
            
| 90 | 93 | 
                 |